package com.mdhw.config;


import com.mdhw.common.enums.MessageEnum;

/**
 * @author zhouxt
 */
public class RUtil {

    /*private RUtil() {
    }

    public static R success(){
        return new R<>(MessageEnum.success);
    }

    public static <T> R success(T data){
        return new R<>(MessageEnum.success.code,MessageEnum.success.message,data);
    }

    public static <T> R success(String message,T data){
        return new R<>(MessageEnum.success.code,message,data);
    }

    public static R empty(){
        return new R<>(MessageEnum.data_empty);
    }


    public static R error(){
        return new R<>(MessageEnum.error);
    }

    public static R error(String message){
        return new R<>(MessageEnum.error.code,message);
    }


    public static R error(MessageEnum messageEnum){
        return new R<>(messageEnum);
    }*/

}
